﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Hotel2.management
{
    public partial class eventsRaffle : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            eventRaffleReturn.Visible = false;
            Table1.Visible = false;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            raffleQuestion.Text = "Event has been Raffled, the following users have randomly been selected!<br /> They will now Be emailed with to Verify payment";
            eventRaffleYes.Visible = false;
            eventRaffleNo.Visible = false;
            eventRaffleReturn.Visible = true;
            eventName.Visible = false;
            Table1.Visible = true;
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            raffleQuestion.Text = "Event has not been Raffled";
            eventRaffleYes.Visible = false;
            eventRaffleNo.Visible = false;
            eventRaffleReturn.Visible = true;
            eventName.Visible = false;
        }

        protected void Return_Click(object sender, EventArgs e)
        {
            Response.Redirect("eventsAll.aspx");
        }
    }
}